﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestVisioCanvas.Helpers
{
    public class MastersCategoriesDictionary
    {
        public static Models.MasterCategory FromCategoryName(string Category)
        {
            if (Category == "Walls")
                return Models.MasterCategory.Walls;
            if (Category == "Doors")
                return Models.MasterCategory.Doors;
            if (Category == "Eletronics")
                return Models.MasterCategory.Eletronics;
            if (Category == "Furniture")
                return Models.MasterCategory.Furniture;
            if (Category == "Other")
                return Models.MasterCategory.Other;
            if (Category == "Sanitary")
                return Models.MasterCategory.Sanitary;
            if (Category == "Measures")
                return Models.MasterCategory.Measures;

            throw new ArgumentException("The Category name " + Category + " does not exist");
        }
    }
}
